package com.bdqn.ch05jsp.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    Logger logger = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping(value = "/hello/{id}")
    public Object hello(@PathVariable(name = "id") String id) {
        logger.warn(id);
        return id;
    }
}
